<template>
    <div class="contentShadow">
        <el-container>
            <el-main>
                <div>
                    <h1>Login Successful!</h1>
                    <p>Welcome, {{ name }}!</p>
                </div>
            </el-main>
        </el-container>
    </div>
</template>

<script>
import {getName} from "@/api/login";

export default {
    name: "SuccessPage",
    data() {
        return {
            name: "",
        };
    },
    mounted() {
        getName().then((res) => {
            // console.log(res.data);
            this.name = res['data'];
        });
    },
};
</script>

<style scoped>

.content {
    margin: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}
</style>
